﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register TagPrefix="dnl" Assembly="DotNetLib" Namespace="DotNetLib.Web.UI.WebControls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        c<asp:ScriptManager ID="sm" runat="server" />
        <asp:CheckBoxList ID="cbl" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
        </asp:CheckBoxList>
        <dnl:CheckBoxListRequiredFieldValidator ID="cblr" runat="server" ControlToValidate="cbl"
            ErrorMessage="error" Text="*" />
        <asp:CheckBox ID="chk1" runat="server" Text="Test 1" /><dnl:CheckBoxRequiredFieldValidator
            ID="chk1r" runat="server" ErrorMessage="Error" Text="*" ControlToValidate="chk1" />
        <asp:CheckBox ID="chk2" runat="server" Text="Test 1" /><dnl:CheckBoxRequiredFieldValidator
            ID="chk2r" runat="server" ErrorMessage="Error" Text="*" RequiredValue="false"  ControlToValidate="chk1r" />
        <asp:ValidationSummary ID="vs" runat="server" />
        <asp:Button ID="submit" runat="server" Text="Submit" />
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server">
        <UpdateParameters>
        </UpdateParameters>
    </asp:SqlDataSource>
    </form>
</body>
</html>
